<?php

class View {

    function __construct() {
        
    }

    public function render($name, $noInclude = false) {

        if ($noInclude == true) {
            require 'view/' . $name . '.php';
        } else {
            if (UserAccess::GetMobileViewer()) {
                require 'view/mobile/header.php';
                require 'view/' . $name . '.php';
                require 'view/mobile/footer.php';
            } else {
                require 'view/desktop/header.php';
                require 'view/desktop/headerLogin.php';
                require 'view/' . $name . '.php';
                require 'view/desktop/footer.php';
            }
        }
    }

}